Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake export target fix #212

Merged
merged 3 commits into from
Jun 1, 2022

Conversation

daschuer
Copy link
Contributor

@daschuer daschuer commented May 8, 2022

This is an improved fix for the #209

It turns out that the solution implemented in #210 dos not work because instead of the CMAKE_CONFIG_TYPE of the target project the first found config type is used which is likely "Debug".

The other issue was that the "fix"

set(QTKEYCHAIN_LIBRARIES "@QTKEYCHAIN_TARGET_NAME@")

for treating QTKEYCHAIN_LIBRARIES as import targets was actually required to link against the import lib instead of the dll on windows. It has been (mis-)used to link against the imported target qtkeychain/qt5keyhain/qt6keychain.

I have also noted that the check_required_components() call for setting the _FOUND variable was missing.

This is fixed as well.

Now everything works again on windows and macOS checked here:
https://github.com/daschuer/mixxx/actions/runs/2288987143

@daschuer
Copy link
Contributor Author

@frankosterfeld Will you have time to look into this? Otherwise I consider to propose this as a patch for vcpkg, which is using the main branch currently.

@daschuer
Copy link
Contributor Author

I will no start to propose a patched version to vcpkg.

@frankosterfeld
Copy link
Owner

Sorry for the delay, merging now

@frankosterfeld frankosterfeld merged commit cd4d732 into frankosterfeld:master Jun 1, 2022
@daschuer
Copy link
Contributor Author

daschuer commented Jun 1, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants